using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for clsSecurity
/// </summary>
public class clsSecurity
{
	public clsSecurity()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    private static void LogSecurityViolation(clsUser User, String SecurityType, SecurityRights SecurityRight)
    {
        // 2007/10/04
        // This logs a security violation
        try
        {
            clsSecurityViolationLogRecord clsSecurityViolationLogRecord = new clsSecurityViolationLogRecord(User.iUserID, SecurityType, SecurityRight);
        }
        catch (Exception ex)
        {
            throw new ApplicationException("Invalid Security Type - " + SecurityType + " (" + SecurityRight.ToString() + ")");
        }
    }
}

public enum SecurityRights
{
    View,
    Add,
    Modify,
    Delete
}
